package animals;

import java.util.ArrayList;

public class ZooSimulationRunner {
	public static void main(String[] args) {
		Animal abstractAnimal = new Cat ();
		Lion lion = new Lion();
		Cat cat = new Cat();
		Hyppo hyppo = new Hyppo();
		Vet vet = new Vet();
	//	abstractAnimal.actLikeAbstractAnimal();		
	//	actLikeLion(lion);
//		
//		Animal[] zoo = new Animal[10];
//		zoo[0] = abstractAnimal;
//		zoo[1] = lion;
//		zoo[2] = cat;
//		zoo[3] = hyppo;
		
		ArrayList<Animal> zoo = new ArrayList<Animal>();
		zoo.add(lion);
		zoo.add(cat);
		zoo.add(hyppo);
		if (zoo.get(1) instanceof Cat) {
			Cat newCat = (Cat)zoo.get(1);
			newCat.makeNoise();
			newCat.play();
			newCat.beFriendly();
		}
		
//		for (AnimalList a : zoo) {
//			if (a != null) {
//				vet.giveShot(a);
//			}
//		}
//		System.out.println("Calling make noise without params");
//		hyppo.makeNoise();
//		System.out.println("Calling make noise with param");
//		hyppo.makeNoise("Auuuuuuu");
	}
}
